package kr.hkit.PowerJava.chapter08;

class A{
	public void aa(){
	System.out.println("aa()");
		/*	System.out.println("aa - start");
		bb();
		System.out.println("aa - end");
*/
	}

/*public void aa(int a){
	System.out.println("aa(int a)");
}
public void aa(int a, int b){}
public void aa(int a, int b, int c){}*/
public void aa(int ...a){
	System.out.println("인수와 개수 : " + a.length);
for (int c: a){
	System.out.println(c);
}
System.out.println();
}
public void bb(String str , int...c){
	System.out.println(str);
	System.out.println("인수와 개수 : "+ c.length);
	for(int d: c){
		System.out.println(d+" ");
	}
}
/*	public void aa(double b){
	System.out.println("aa(double b)");
}*/
/*public void bb(){
	System.out.println("bb - start");
	cc();
	System.out.println("bb - end");

}
public void cc(){
	System.out.println("cc - start");
	System.out.println("cc - end");

}
}
*/
}
public class MathodCallTest {
	public static void main(String[] args){
	A a = new A();
	a.bb("aa", 1,2,3,4);
	a.bb("aa",1,2,3);
	a.bb("aa",1,2);
	a.bb("aa",1);
	
	
	a.aa();
    a.aa(3);
    a.aa(1,2);
    a.aa(1,2,3);
    a.aa(1,2,3,4);
	
	}

}
